<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
<base href="<%=basePath%>">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>旋转木马</title>
<link href="css/style.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap1.min.css" rel="stylesheet">
<link href="css/style1.css" rel="stylesheet">
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>

<body>
	<%@include file="common/Top.jsp" %>
	<!-- 图片轮播 -->
	<div id="main-content">
		<div class="container">
			<div id="carousel1" class="carousel slide">
				<div class="carousel-inner">
				<s:iterator value="picTurnList" status="img">
					<s:if test="#img.index==0">
						<div class="item active">
							<a href="<s:property value="jumpurl"/>"><img src="<s:property value="imageurl"/>" alt="<s:property value="title"/>"></a>
							<div class="carousel-caption">
								<h4><s:property value="title"/></h4>
								<p><s:property value="description"/></p>
							</div>
						</div>
					</s:if>
					<s:else>
						<div class="item">
							<a href="<s:property value="jumpurl"/>"><img src="<s:property value="imageurl"/>" alt="<s:property value="title"/>"></a>
							<div class="carousel-caption">
								<h4><s:property value="title"/></h4>
								<p><s:property value="description"/></p>
							</div>
						</div>
					</s:else>
				</s:iterator>
					
				</div>
				<a href="#carousel1" data-slide="prev" class="left carousel-control">‹</a>
				<a href="#carousel1" id="right" data-slide="next" class="right carousel-control">›</a>
			</div>
			<!-- 图片轮播结束 -->
			<!-- 正文部分 -->
			<%@include file="common/indexLayOut.jsp" %>
			<!-- 正文部分结束 -->
		</div>
		</div>
	<%@include file="common/Bottom.jsp" %>
<script src="bootstrap/js/jquery-1.10.2.js"></script>
<script src="backadmin/js/jquery-1.10.2.min.js"></script> 
<script src="bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">
$(function(){
	$('.carousel').carousel({
		 interval: 3000
		});
	if(window.location.href=="http://localhost:8080/hcPro/"){
		window.location.href="index.action";
	}
});
</script>
</body>
</html>
